﻿using System.Windows.Forms;

namespace ThreadSafeControls {
    public partial class ThreadSafeListView : ThreadSafeControl<ListView> {

        private readonly ListViewItemCollection _items;
        private readonly ColumnHeaderCollection _columns;

        internal ThreadSafeListView(ListView listView) : base(listView) {
            _items = new ListViewItemCollection(this);
            _columns = new ColumnHeaderCollection(this);
        }

        public ListViewItemCollection Items {
            get { return _items; }
        }

        public ColumnHeaderCollection Columns {
            get { return _columns; }
        }

    }
}
